home *** CD-ROM | disk | FTP | other *** search
- Q28687 _ellipse Does Not Fill Interior
- C Compiler
- 5.00 5.10 | 5.10
- MS-DOS | OS/2
-
- Problem:
- The following code draws two ellipses. The first is filled with
- the default color, but the second is not. It is left empty as if
- _GBORDER were used instead of _GFILLINTERIOR.
-
- #include <conio.h>
- #include <graph.h>
-
- main()
- {
- _setvideomode(_ERESCOLOR) ;
- _ellipse (_GFILLINTERIOR, 300, 0, 340, 479) ;
- _ellipse (_GFILLINTERIOR, 0, 220, 639, 260) ;
- while ( !kbhit() ) ;
- _setvideomode (_DEFAULTMODE) ;
- }
-
- Response:
- Microsoft has confirmed this to be a problem in Versions 5.00 and
- 5.10. We are researching this problem and will post new information as
- it becomes available.
- To work around the problem, use the _setcolor function to specify a
- a color immediately before the second _ellipse, as in the following:
-
- {
- _setvideomode(_ERESCOLOR) ;
- _ellipse (_GFILLINTERIOR, 300, 0, 340, 479) ;
-
- _setcolor(1) ;
- _ellipse (_GFILLINTERIOR, 0, 220, 639, 260) ;
-
- }
-
-
- Keywords: buglist5.00 buglist5.10
- Updated 88/07/29 14:28
-